package com.lazyfish.util;

public class ResultBuild<T> {
    int status = -1;
    private T data;
    private String message = "哦豁，调用成功！";



    public ResultBuild(int status, T data){
        this.status=status;
        this.data=data;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    //    public static void main(String[] args) {
//        WordInfo wordInfo = new WordInfo();
//        wordInfo.setAdress("test");
//        System.out.println(new ResultBuild(12,wordInfo));
//    }
}
